﻿namespace TroubleshootingofBeanBagAssistant.lCheck
{
	public class LicenseCheck : IDiagnosticCheck
	{
		public string Name => "证书/许可证有效性检查";
		public CheckResult Run()
		{
			DateTime expireDate = new DateTime(2026, 5, 29);
			DateTime now = DateTime.Now;
			if (now > expireDate)
				return new CheckResult { Title = "证书/许可证已过期", Detail = $"当前时间: {now:yyyy-MM-dd}，到期时间: {expireDate:yyyy-MM-dd}" };
			else
				return new CheckResult { Title = "证书/许可证有效", Detail = $"当前时间: {now:yyyy-MM-dd}，到期时间: {expireDate:yyyy-MM-dd}" };
		}
	}
}
